﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _04_泛型接口
{
    //public class Rectangle : Shape
    //{

    //}
    // interface IIndex<out T>
    //{
    //    T this[int index] { get; }
    //    int count { get; }
    //}
    //public class RectangleCollection : IIndex<Rectangle>
    //{
    //    private Rectangle[] data = new Rectangle[3]
    //    {
    //        new Rectangle { Width =5,Length =1 },
    //        new Rectangle { Width =6,Length =2 },
    //        new Rectangle { Width =7,Length =3 }
    //    };
    //    public static RectangleCollection GetRectangles()
    //    {
    //        return new RectangleCollection();
    //    }
        
    //}

}
